# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-imgcat
_pkgname=imgcat
pkgver=0.6.0
pkgrel=1
pkgdesc='imgcat as Python API and CLI.'
arch=('any')
url='https://pypi.org/project/imgcat/#files'
license=('MIT')
depends=('python')
makedepends=('python-setuptools' 'python-pip' 'python-wheel')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('e3a070808fb626875fb2f7c18d5fb05378f477c74228d8b35894381c8bab23624ff3037e7ab3f7ae29a449e9405599e1a34bac7d4137e5d2af4b5ee267b8011a')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

